package com.ruoyi.develop.lvRukumingxi.service;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import com.ruoyi.develop.goodsSaledo.domain.GoodsSaledo;
import com.ruoyi.develop.lvRuku.domain.LvRuku;
import com.ruoyi.develop.lvRukumingxi.domain.LvRukumingxi;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 出入库记录Service接口
 * @author qh
 * @date 2024-10-12
 */
public interface ILvRukumingxiService {
    /**
     * 查询出入库记录
     * @param id 出入库记录主键
     * @return 出入库记录
     */
    public LvRukumingxi selectById(String id);

    /**
     * 查询出入库记录列表
     * @param entity 出入库记录
     * @return 出入库记录集合
     */
    public List<LvRukumingxi> selectList(LvRukumingxi entity);

    /**
     * 新增出入库记录
     * @param entity 出入库记录
     * @return 结果
     */
    public int insert(LvRukumingxi entity);

    /**
     * 修改出入库记录
     * @param entity 出入库记录
     * @return 结果
     */
    public int update(LvRukumingxi entity);

    public int editBohui(LvRukumingxi entity);
    /**
     * 批量删除出入库记录
     * @param ids 需要删除的出入库记录主键集合
     * @return 结果
     */
    public int deleteByIds(String[] ids);

    public int ruku(String[] ids);

    public int zhijianSuccess(String[] ids);
    public int zizhiToZhijian(String[] ids);
    /**
     * 删除出入库记录信息
     * @param id 出入库记录主键
     * @return 结果
     */
    public int deleteById(String id);

    public int deleteByIdPhysical(String id);

    int insertIn(LvRukumingxi entity);

    int addInZizhi(LvRukumingxi entity);

    int insertOut(LvRukumingxi entity);

    Map<String, Object> uploadChanchengpin(LvRukumingxi entity, MultipartFile file);

    Map<String, Object> uploadCaigou(LvRukumingxi entity, MultipartFile file);

    Map<String, Object> uploadOther(LvRukumingxi entity, MultipartFile file);

    Map<String, Object> uploadOut(LvRukumingxi entity, MultipartFile file);

    String selectMaxCode(String today);


    List<LvRukumingxi> buyNotInvoiceList(LvRukumingxi entity);
    int addRukumingxiList(LvRukumingxi entity);

    void exportDataIn(HttpServletRequest request, HttpServletResponse response, LvRukumingxi entity);
    void exportDataOut(HttpServletRequest request, HttpServletResponse response, LvRukumingxi entity);

    List<LvRukumingxi> selectListRemainNotZero(LvRukumingxi entity);

    public int deleteRukumingxi(String[] ids);

    public int addMainOtherChuku(LvRuku entity);
}
